<%@ page import="java.time.LocalDateTime" %>
<%--
  Created by IntelliJ IDEA.
  User: lzy
  Date: 2018/7/24
  Time: 10:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Hello</title>
</head>
<body>
<%
    LocalDateTime localDateTime = LocalDateTime.now();
    System.out.println("当前时间：" + localDateTime);
%>

<%
    String str = localDateTime.plusDays(1).toString();

    // 没有声明就可以使用的对象
    String name = request.getParameter("name");
    System.out.println(name);

    Class clazz = response.getClass();
    System.out.println(clazz.toString());

    System.out.println("session id:" + session.getId());

    System.out.println(application.getInitParameter("db.driver"));

    System.out.println(config.getInitParameter("test"));

    out.println("当前时间：" + str);
%>
<br>
<%
    out.println(application.getInitParameter("db.driver"));
    out.println("<br>");
    out.println(page);
%>
</body>
</html>
